how to make matplotlib more interactive